﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace DoNetFrameworkWebApi.Models
{
    public class User
    {
        [Key]
        [Required]
        public int Id { get; set; }
        [Required]
        [MaxLength(20)]
        public string Name { get; set; }
        [Required]
        public int Age { get; set; }
        [Required]
        public int Sex { get; set; }
        [Required]
        public DateTime Birthday { get; set; }
        public float Salary { get; set; }
    }
}